package cn.mes.module.mes.enums;

import cn.mes.framework.common.exception.ErrorCode;

public interface ErrorCodeConstants {
    ErrorCode BASE_CUSTOMER_INFO_NOT_EXISTS = new ErrorCode(1, "客户基础信息不存在");
    ErrorCode BASE_TIME_PERIOD_NOT_EXISTS = new ErrorCode(2, "时间段配置信息不存在");
    ErrorCode BASE_WORK_SHOP_NOT_EXISTS = new ErrorCode(3, "车间信息不存在");
    ErrorCode BASE_WORK_SHOP_EXITS_CHILDREN = new ErrorCode(10, "存在存在子车间信息，无法删除");
    ErrorCode BASE_WORK_SHOP_PARENT_NOT_EXITS = new ErrorCode(11,"父级车间信息不存在");
    ErrorCode BASE_WORK_SHOP_PARENT_ERROR = new ErrorCode(12, "不能设置自己为父车间信息");
    ErrorCode BASE_WORK_SHOP_WORK_SHOP_NAME_DUPLICATE = new ErrorCode(13, "已经存在该车间名称的车间信息");
    ErrorCode BASE_WORK_SHOP_PARENT_IS_CHILD = new ErrorCode(14, "不能设置自己的子BaseWorkShop为父BaseWorkShop");
    ErrorCode BASE_MACHINE_INFO_NOT_EXISTS = new ErrorCode(4, "机台产线基础信息不存在");
    ErrorCode BASE_MACHINE_AREA_NOT_EXISTS = new ErrorCode(5, "生产区域信息不存在");
    ErrorCode BASE_WORK_PLAN_NOT_EXISTS = new ErrorCode(6, "任务单信息不存在");
    ErrorCode BASE_BOM_CHILD_NOT_EXISTS = new ErrorCode(7, "投料单详细信息不存在");
    ErrorCode BASE_DEVICE_DATA_NOT_EXISTS = new ErrorCode(8, "设备数据不存在");
    ErrorCode BASE_MACHINE_PEOPLE_INFO_NOT_EXISTS = new ErrorCode(9, "机台负责人员信息不存在");
}
